package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SpokenQa;
import com.ruoyi.system.mapper.SpokenQaMapper;
import com.ruoyi.system.service.ISpokenQaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpokenQaServiceImpl implements ISpokenQaService {

    @Autowired
    SpokenQaMapper qaMapper;

    /**
     * 列表查询
     * @param qa
     */
    @Override
    public List<SpokenQa> selectList(SpokenQa qa) {
        return qaMapper.selectList(qa);
    }

    /**
     * 添加问题
     */
    @Override
    public int insert(SpokenQa qa) {
        return qaMapper.insert(qa);
    }

    /**
     * 修改问题
     */
    @Override
    public int update(SpokenQa qa) {
        return qaMapper.update(qa);
    }

    /**
     * 查询问题
     */
    @Override
    public SpokenQa getById(Long qaId) {
        return qaMapper.getById(qaId);
    }

    /**
     * 删除问题
     */
    @Override
    public int delete(Long qaId) {
        return qaMapper.delete(qaId);
    }
}
